// routes/articleRoutes.js
const express = require('express');
const router = express.Router();
const articleController = require('../controllers/articleController');

router.post('/create', articleController.createArticle);
router.post('/getById', articleController.getArticleById);
router.post('/getAll', articleController.getAllArticles);
router.post('/update', articleController.updateArticle);
router.post('/delete', articleController.deleteArticle);

module.exports = router;